home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue.arc / TVWCREAT.C < prev    next >
C/C++ Source or Header  |  1990-01-09  |  1KB  |  40 lines

  1. /*================================================*/
  2. /* TVWCREAT.C                                     */
  3. /*   non-stream window manipulation functions     */
  4. /*                                                */
  5. /* (c) Copyright 1988 Ralf Brown                  */
  6. /*     All Rights Reserved                        */
  7. /* May be freely copied for noncommercial use as  */
  8. /* long as this copyright notice is kept intact   */
  9. /* and any changes are indicated in the comment   */
  10. /* blocks for the functions                       */
  11. /*================================================*/
  12.  
  13. #include <stdio.h>
  14. #include <string.h>
  15. #include "tvapi.h"
  16.  
  17. /*================================================*/
  18. /* TVcreate_window  create a new window           */
  19. /*   Ralf Brown 4/24/88                           */
  20. /*================================================*/
  21.  
  22. OBJECT pascal TVcreate_window(OBJECT win,char *title,int rows,int cols, int unknown1, DWORD unknown3)
  23. {
  24.    PARMLIST8 p ;
  25.  
  26.    p.num_args = 8 ;
  27.    p.arg[0] = (DWORD)(char far *)title ;
  28.    p.arg[1] = (DWORD) strlen(title) ;
  29.    p.arg[2] = (DWORD) rows ;
  30.    p.arg[3] = (DWORD) cols ;
  31.    p.arg[4] = (DWORD) unknown1 ;
  32.    p.arg[5] = (DWORD) 0 ;
  33.    p.arg[6] = (DWORD) unknown3 ;
  34.    p.arg[7] = (DWORD) NIL ;
  35.    TVsendmsg(NEW_MSG, win?TOS:WINDOW_CLASS, win, (PARMLIST *)&p) ;
  36.    return (OBJECT) p.arg[0] ;
  37. }
  38.  
  39. /* End of TVWCREAT.C */
  40.